package com.cndw.kungfu.core;

import com.cndw.asyncsync.SyncObject;
import com.cndw.kungfu.model.Context;

public abstract class CacheDataBase extends SyncObject {

	public int syncDBTime;

	public abstract String getKey();

	@Override
	public boolean syncDB() {
		return Context.getSyncServer().syncDB(this);
	}

	public int getSyncDBTime() {
		return syncDBTime;
	}

	public void setSyncDBTime(int syncDBTime) {
		this.syncDBTime = syncDBTime;
	}

}
